package com.ym.medical.dao;

import com.ym.medical.domain.entity.CommentEntity;
import com.ym.medical.domain.vo.CommentVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * 评论Dao接口
 *
 * @author ym
 * @date 2020-08-24
 */
@Repository
public interface CommentDao extends Mapper<CommentEntity> {
	/**
	 * 查询帖子的评论信息
	 * @param id
	 * @return
	 */
	List<CommentVo> selectByAnswerId(@Param("answerId") Long id);
}
